package com.ssm.service.serviceImpl;

import com.ssm.entity.Student;
import com.ssm.mapper.StudentMapper;
import com.ssm.service.StudentService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {
    private final StudentMapper studentMapper;

    public StudentServiceImpl(StudentMapper studentMapper) {
        this.studentMapper = studentMapper;
    }

    @Override
    public List<Student> getStudentList() {
        return studentMapper.selectAll();
    }
}
